
{php $jiugetubiao = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_tupian_buy')->where('cid', $id)->where('uid', $member.uid)->get()->getRowArray();}
    {php $uidhuiyuanzuid = \Phpcmf\Service::M()->db->table('1_quan_form_group')->where('uid', $member.id)->where('quanid', $index['id'])->get()->getRowArray();}
    {php $huiyuanzuid = \Phpcmf\Service::M()->db->table('1_quan_form_yonghuzu')->where('leixing', 0)->where('kaiguan', 1)->where('id', $uidhuiyuanzuid['gid'])->get()->getRowArray();}
	{if strtotime($uidhuiyuanzuid['etime']) > time()}
	{php $huiyuanzuquanxian = $huiyuanzuid && $uidhuiyuanzuid;}
	{else}
	{php $huiyuanzuquanxian = '';}
	{/if}
	{if $jiugetubiao || $uid == $member.id || $member.is_admin || $huiyuanzuquanxian}
	<div class="d-shang-15">
		<div class="d-kuan">
			<div>
				<div class="row d-shang-15">
					<div class="" id="jiugetuzu">
						{loop $jiugetu $i $c}
						<div class="col-md-4 col-xs-4 liebiaotu-zhong d-yuanjiao-10 xia-20 a">
							<img src="{dr_get_file($c.file)}" class="d-yuanjiao-10"/>
						</div>
						{/loop}
					</div>
				</div>
			</div>
		</div>
	</div>
	{else}
<div class="d-kuan d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
	    	<div class="d-kuan-70 d-imgs">
	    		<img src="{HOME_THEME_PATH}web/img/tupiantubiao.png" width="40" height="40"/>
	    	</div>
	    	<div class="d-kuan">
	    		<div class="pull-left">
	    			<div class="d-wenzi-14 d-zitiyanse-hui">
	    				付费阅读 <span class="d-wenzi-12 d-zitiyanse-hui"></span>
	    			</div>
	    			<div class="d-wenzi-14">
						{$tuyuedujinbi} 元
						
					</div>
	    		</div>
	    		<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
	    			<a href="{dr_url(MOD_DIR.'/buyjiugetu/index', ['fid' => $ci->module['form']['son']['field']['tuyuedujinbi']['id'],'id'=> $id])}">
	    			<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
	    				购 买
	    			</div>
	    			</a>
	    		</div>
	    	</div>
	    </div>
	<div class="d-shang-15">
		<div class="d-kuan">
			<div>
				<div class="row d-shang-15">
					<div class="" id="jiugetuzu">
						{loop $jiugetu $i $c}
						<div class="col-md-4 col-xs-4 liebiaotu-zhong d-yuanjiao-10 xia-20 a">
							<img src="{HOME_THEME_PATH}web/img/fufeiyuedu.png" class="d-yuanjiao-10"/>
						</div>
						{/loop}
					</div>
				</div>
			</div>
		</div>
	</div>
	{/if}

<style>
.d-beijingyanse-hong {
	background-color: #fff6f6;
	border-radius: 10px !important;
}
.xia-20 {
	margin-bottom: 20px;
	
}
</style>


<script>
	var viewerzu = new Viewer(document.getElementById('jiugetuzu'), {
	  	//url: 'data-kujue',
		toolbar: false,//关闭工具栏
		title: false,//关闭标题栏
		backdrop: true, //点击遮罩层不关闭
		rotatable: false, //图片是否可旋转
		scalable: false, //图片是否可翻转
		tooltip: false, //显示缩放百分比
	  });

</script>